<template>
  <div class="container">
    <el-button @click="handleToLogin" class="animate__bounceOutUp">跳转登录</el-button>
    <div class="wow bounceInLeft">Content to Reveal Here</div>
    <div class="box"></div>
    <el-carousel class="wow wobble" :interval="4000" autoplay type="card" height="200px">
      <el-carousel-item v-for="item in 6" :key="item">
        <h3 class="medium">{{ item }}</h3>
      </el-carousel-item>
    </el-carousel>

    <p class="wow bounceInLeft">测试动画</p>

    <h1 class="wow bounceInLeft">An animated element</h1>

    <p class="wow bounceInLeft">这个太有意思了</p>
  </div>
</template>

<script>
import { WOW } from 'wowjs'
export default {
  data() {
    return {}
  },

  mounted() {
    new WOW().init()
  },

  methods: {
    handleToLogin() {
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="less" scoped>
.container {
  height: 1000px;
}
.box {
  height: 1000px;
}

.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
